<%@ page language="java" contentType="text/html; charset=UTF-8"  
    pageEncoding="UTF-8"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>注册登录页面</title>
     
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="user register/login page">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-2.1.0.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/js/bootstrap.min.js"></script>
	<link rel="stylesheet" href="<%=request.getContextPath()%>/css/bootstrap.min.css">
	<link rel="stylesheet" href="<%=request.getContextPath()%>/css/bootstrap-theme.min.css">
  </head>
  <body>
		<div class="container">
			<form class="form-horizontal" action="<%=request.getContextPath()%>/login" method="post">
			    <fieldset>
			      <div id="legend" class="">
			        <legend class="">用户登录</legend>
			      </div>
			    <div class="control-group">
			
			          <!-- Text input-->
			          <label class="control-label" for="input01">用户名</label>
			          <div class="controls">
			            <input type="text" placeholder="请输入用户名" class="input-xlarge" name="userid">
			            <p class="help-block"></p>
			          </div>
			        </div>
			    <div class="control-group">
			
			          <!-- Text input-->
			          <label class="control-label" for="input01">密码</label>
			          <div class="controls">
			            <input type="password" placeholder="请输入密码" class="input-xlarge"  name="password">
			            <p class="help-block"></p>
			          </div>
			        </div>
			   <!--  <div class="control-group">
			
			          Text input
			          <label class="control-label" for="input01">验证码</label>
			          <div class="controls">
			            <input type="text" placeholder="请输入验证码" class="input-xlarge">
			            <p class="help-block"></p>
			          </div>
			        </div> -->
			    <div class="control-group">
			          <label class="control-label"></label>

			          <!-- Button -->
			          <div class="controls">
			          	<input type=submit value="登录" name="Submit1" class="btn btn-success">
			          </div>
			          <br>
					  <a href="<%=request.getContextPath()%>/">去注册</a>
			        </div>
			    </fieldset>
			  </form>
			  ${requestScope.msg}
		</div>
  </body>
</html>
